﻿@using FCTC_Web.Models
@using FCTC_Web.Controllers.Business.BusinessModel
@model DefaultModel
<div class="ershouche_left">
    <div class="ershouche_left_2">
        <div class="ershouche_left_4">
            <img src="/images/ershouche_1.gif" width="94" height="20" alt="tu" /></div>
        <div class="ershouche_left_5">
            <ul id="tags">
                <li class="selectTag"><a onclick="selectTag('tagContent0',this)" href="javascript:void(0)">
                    轿车</a></li>
                <li><a onclick="selectTag('tagContent1',this)" href="javascript:void(0)">客车</a></li>
                <li><a onclick="selectTag('tagContent2',this)" href="javascript:void(0)">越野车</a></li>
                <li><a onclick="selectTag('tagContent3',this)" href="javascript:void(0)">商务车</a></li>
            </ul>
            <a href="@Url.Action("Index", "VehicleBusiness")">
                <img src="/images/more2.gif" width="49" height="19" /></a>
        </div>
    </div>
    <div id="tagContent">
        <div class="tagContent selectTag" id="tagContent0">
            <div class="tagContent_box">

                   @for (int i = 0; i < 4 && i < Model.Cars.Count; i++)
                    {
                    <ul>
                        <li><a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.Cars[i].ID })">
                            @if (Model.Cars[i].Imgs != null && Model.Cars[i].Imgs.Count > 0)
                            {
                               
                                <img src="@Url.Action("ShowImage", "Image", new { id = Model.Cars[i].Imgs[0].ID })"  width="150" height="116" alt="tuijian" />
                 
                            }
                            else
                            { <img src="/images/moren_car.jpg" alt="" />
                            }
                        </a></li>
                        <li><a href="#">@Model.Cars[i].FullName</a> </li>
                        <li>
                            @Html.DisplayFor(c => Model.Cars[i].Prize)
                            万 </li>
                        <li>
                            <p>@Model.Cars[i].DeliveryCapacity L @Model.Cars[i].Gears</p>
                        </li>
                    </ul>
                    }
            </div>
            <div class="tagContent_box">
                    @for (int i = 4; i < 8 && i < Model.Cars.Count; i++)
                    {
                    <ul>
                        <li><a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.Cars[i].ID })">
                            @if (Model.Cars[i].Imgs != null && Model.Cars[i].Imgs.Count > 0)
                            {
                               
                                <img src="@Url.Action("ShowImage", "Image", new { id = Model.Cars[i].Imgs[0].ID })"  width="150" height="116" alt="tuijian" />
                            }
                            else
                            {  <img src="/images/moren_car.jpg" alt="" />
                             
                            }
                        </a></li>
                        <li><a href="#">@Model.Cars[i].FullName</a> </li>
                        <li>
                            @Html.DisplayFor(c => Model.Cars[i].Prize)
                            万 </li>
                        <li>
                            <p>@Model.Cars[i].DeliveryCapacity L @Model.Cars[i].Gears</p>
                        </li>
                    </ul>
                    }
            </div>
        </div>
        <div class="tagContent" id="tagContent1">
            <div class="tagContent_box">
                @if (Model.Transportion != null)
                {

                    for (int i = 0; i < 4 && i < Model.Transportion.Count; i++)
                    {
                    <ul>
                        <li><a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.Transportion[i].ID })">
                            @if (Model.Transportion[i].Imgs != null && Model.Transportion[i].Imgs.Count > 0)
                            {
                               
                                <img src="@Url.Action("ShowImage", "Image", new { id = Model.Transportion[i].Imgs[0].ID })"  width="150" height="116" alt="tuijian" />
                     
                            }
                            else
                            {   <img src="/images/moren_car.jpg" alt="" />
                            
                            }
                        </a></li>
                        <li><a href="#">@Model.Transportion[i].FullName</a> </li>
                        <li>
                            @Html.DisplayFor(c => Model.Transportion[i].Prize)
                            万 </li>
                        <li>
                            <p>@Model.Transportion[i].Location</p>
                        </li>
                    </ul>
                    }
                }
            </div>
            <div class="tagContent_box">
                @if (Model.Transportion != null)
                {

                    for (int i = 4; i < 8 && i < Model.Transportion.Count; i++)
                    {
                    <ul>
                        <li><a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.Transportion[i].ID })">
                            @if (Model.Transportion[i].Imgs != null && Model.Transportion[i].Imgs.Count > 0)
                            {
                                <img src="@Url.Action("ShowImage", "Image", new { id = Model.Transportion[i].Imgs[0].ID })"  width="150" height="116" alt="tuijian" />
                          
                            }
                            else
                            {
                                <img src="/images/moren_car.jpg" alt="" />
                            }
                        </a></li>
                        <li><a href="#">@Model.Transportion[i].FullName</a> </li>
                        <li>
                           @Html.DisplayFor(c => Model.Transportion[i].Prize)
                            万 </li>
                        <li>
                            <p>@Model.Transportion[i].Location</p>
                        </li>
                    </ul>
                    }
                }
            </div>
        </div>
        <div class="tagContent" id="tagContent2">
            <div class="tagContent_box">
                @if (Model.SUV != null)
                {

                    for (int i = 0; i < 4 && i < Model.SUV.Count; i++)
                    {
                    <ul>
                        <li><a href=""><a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.SUV[i].ID })">
                            @if (Model.SUV[i].Imgs != null && Model.SUV[i].Imgs.Count > 0)
                            {
                                
                                <img src="@Url.Action("ShowImage", "Image", new { id = Model.SUV[i].Imgs[0].ID })"  width="150" height="116" alt="tuijian" />
                              
                            }
                            else
                            {
                                <img src="/images/moren_car.jpg" alt="" />
                            }
                        </a></li>
                        <li><a href="#">@Model.SUV[i].FullName</a> </li>
                        <li>
                           @Html.DisplayFor(c => Model.SUV[i].Prize)
                            万 </li>
                        <li>
                            <p>@Model.SUV[i].Location</p>
                        </li>
                    </ul>
                    }
                }
            </div>
            <div class="tagContent_box">
                @if (Model != null)
                {

                    for (int i = 4; i < 8 && i < Model.SUV.Count; i++)
                    {
                    <ul>
                        <li><a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.SUV[i].ID })">
                            @if (Model.SUV[i].Imgs != null && Model.SUV[i].Imgs.Count > 0)
                            {
                                <img src="@Url.Action("ShowImage", "Image", new { id = Model.SUV[i].Imgs[0].ID })"  width="150" height="116" alt="tuijian" />
                            }
                            else
                            {
                                <img src="/images/moren_car.jpg" alt="" />
                            }
                        </a></li>
                        <li><a href="#">@Model.SUV[i].FullName</a> </li>
                        <li>
                             @Html.DisplayFor(c => Model.SUV[i].Prize)
                            万 </li>
                        <li>
                            <p>@Model.SUV[i].Location</p>
                        </li>
                    </ul>
                    }
                }
            </div>
        </div>
        <div class="tagContent" id="tagContent3">
            <div class="tagContent_box">
                @if (Model.BusinessVehicle != null)
                {

                    for (int i = 0; i < 4 && i < Model.BusinessVehicle.Count; i++)
                    {
                    <ul>
                        <li><a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.BusinessVehicle[i].ID })">
                            @if (Model.BusinessVehicle[i].Imgs != null && Model.BusinessVehicle[i].Imgs.Count > 0)
                            {
                                <img src="@Url.Action("ShowImage", "Image", new { id = Model.BusinessVehicle[i].Imgs[0].ID })"  width="150" height="116" alt="tuijian" />
                            }
                            else
                            {
                                <img src="/images/moren_car.jpg" alt="" />
                            }
                        </a></li>
                        <li><a href="#">@Model.BusinessVehicle[i].FullName</a> </li>
                        <li>
                            @Html.DisplayFor(c => Model.BusinessVehicle[i].Prize)
                            万 </li>
                        <li>
                            <p>@Model.BusinessVehicle[i].Location</p>
                        </li>
                    </ul>
                    }
                }
            </div>
            <div class="tagContent_box">
                @if (Model.BusinessVehicle != null)
                {

                    for (int i = 4; i < 8 && i < Model.BusinessVehicle.Count; i++)
                    {
                    <ul>
                        <li><a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.BusinessVehicle[i].ID })">
                            @if (Model.BusinessVehicle[i].Imgs != null && Model.BusinessVehicle[i].Imgs.Count > 0)
                            {
                                <img src="@Url.Action("ShowImage", "Image", new { id = Model.BusinessVehicle[i].Imgs[0].ID })"  width="150" height="116" alt="tuijian" />
                            }
                            else
                            {   
                                <img src="/images/moren_car.jpg" alt="" />
                            }
                        </a></li>
                        <li><a href="#">@Model.BusinessVehicle[i].FullName</a> </li>
                        <li>
                             @Html.DisplayFor(c => Model.BusinessVehicle[i].Prize)
                            万 </li>
                        <li>
                            <p>@Model.BusinessVehicle[i].Location</p>
                        </li>
                    </ul>
                    }
                }
            </div>
        </div>
    </div>
</div>
